<template>
  <a-config-provider :locale="zhCN">
    <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> |
      <router-link to="/editor">Editor</router-link> |
      <router-link to="/three">Three</router-link> |
      <router-link to="/mock">Mock</router-link> |
      <!-- <router-link to="/lingo3d">lingo3d</router-link> | -->
      <router-link to="/markdown2PDF">markdown2PDF</router-link> |
      <router-link to="/todos">Todos</router-link> |
      <router-link to="/tools">Tools</router-link> |
      <router-link to="/react">react</router-link> |
      <router-link to="/table">Table</router-link> |
      <router-link to="/el-table">ElementTable</router-link> |
      <router-link to="/upload">upload</router-link> |
    </nav>
    <router-view v-slot="{ Component, route }">
      <transition name="fade-transform" mode="out-in">
        <keep-alive>
          <component :is="Component" :key="route.path" />
        </keep-alive>
      </transition>
    </router-view>
    <div id="react"></div>
  </a-config-provider>
</template>
<script lang="ts" setup>
import zhCN from 'ant-design-vue/es/locale/zh_CN'
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
.fade-transform-leave-active,
.fade-transform-enter-active {
  transition: all 0.5s;
}
.fade-transform-enter-from {
  opacity: 0;
  transform: translateX(-30px);
}
.fade-transform-leave-to {
  opacity: 0;
  transform: translateX(30px);
}

</style>
